package mortal.common.font
{
	import flash.display.*;
	import flash.text.*;
	
	public class FontLibrary extends Sprite
	{
		public static var huawenhangkai:Class = FontLibrary_huawenhangkai;
		public static var title:Class = FontLibrary_title;
		
		public function FontLibrary()
		{
			if (_instance)
			{
				throw new Error("GametipsConfig 单例！");
			}
			
			Font.registerFont(huawenhangkai);
			Font.registerFont(title);
		}
		
		private static var _instance:FontLibrary;
		public static function getInstance() : FontLibrary
		{
			if (!_instance)
			{
				_instance = new FontLibrary;
			}
			return _instance;
		}
	}
}
